/***************************************************************************
 *   Copyright (C) 2007 by Vishwajeet   *
 *   vishwajeet@qcomputingproject.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 ***************************************************************************/
#include "ClassicWindowVish.h"

ClassicWindowVish::ClassicWindowVish ( QWidget *parent )
    : QWidget ( parent )
{
  setupUi ( parent );
  m_pClassicViewImageManager = new ClassicViewImageManager();

  	QStringList list;
	
	list << "/usr/share/wallpapers/root-logo.png" << "/usr/share/wallpapers/All-Good-People-1.jpg" <<
	"/usr/share/wallpapers/alta-badia.jpg" <<
	"/usr/share/wallpapers/blue-bend.jpg" <<
	"/usr/share/wallpapers/seaofconero.jpg" <<
	"/usr/share/wallpapers/suse101-1600x1200.jpg" <<
	"/usr/share/wallpapers/suse103-1920x1200.jpg" <<
	"/usr/share/wallpapers/triplegears.jpg" <<
	"/usr/share/wallpapers/soft-green.jpg" <<
	"/usr/share/wallpapers/Totally-New-Product-1.jpg";

	int random;
	QStringList imageFileList;
	for(int i = 0; i< 200;++i)
	{
		random = qrand() % 10;
		//qDebug("Random = %d",random);
		imageFileList.append(list.at(random));
	}
	m_pClassicViewImageManager->loadImages(imageFileList);
}


ClassicWindowVish::~ClassicWindowVish()
{
  delete m_pClassicViewImageManager;

}


